<?php
class Merchant_Service_TakeStockItem
{

	public static function getByCond($cond=array(),$type='*',$pageSize=0,$page=1,$order=array())
	{ 
		$obj=new Merchant_Model_TakeStockItem();
		$rows= $obj->getByCond( $cond,$type,$pageSize,$page,$order);	
		return $rows;
	}
	
	public static function getByfield($field,$value)
	{ 
		$obj=new Merchant_Model_TakeStockItem();
		$rows=$obj->getByfield($field,$value);
		if(!empty($rows)){
			$rows=$rows->toArray();
		}
		return $rows;
	}
	
	public static function getRowByCond($cond=array())
	{ 
		$obj=new Merchant_Model_TakeStockItem();
		$rows= $obj->getRowByCond($cond);	
		return $rows;
	}
	
	public static function getByCondGroup($cond=array(),$type='*',$pageSize=0,$page=1,$order=array())
	{ 
		$obj=new Merchant_Model_TakeStockItem();
		$rows= $obj->getByCondGroup( $cond,$type,$pageSize,$page,$order);	
		return $rows;
	}
	

	
}